<?php
namespace App\Modules\Fund;
use App\Modules\AdapterApi;
use App\Services\Fund\FundIndex;
/**
 * Created by PhpStorm.
 * User: 97606
 * Date: 2018/6/12
 * Time: 10:10
 */
class FundOptionLog extends AdapterApi
{
    // 获取所资金操作日志(分页)
    public function list(): array
    {
        $data = pick_array($this->postData, ['page', 'list_rows','keywords','type','startTime','endTime']);
        return FundIndex::FundOptionLog()->list($data);
    }
    // 获取某些user_ids的的资金操作日志(分页)
    public function listByUserIds(): array
    {
        $data = pick_array($this->postData, ['page', 'list_rows','user_ids']);
        return FundIndex::FundOptionLog()->listByUserIds($data);
    }
    // 获取某个用户某个状态的资金操作日志分页数据
    public function listByUserType(): array
    {
        $data = pick_array($this->postData, ['page', 'list_rows','user_id','type','money','time']);
        return FundIndex::FundOptionLog()->listByUserType($data);
    }
    /*获取管理员冻结资金、积分、艺货币的原因记录*/
    public function freezeOperateReason(): array 
    {
        $data = pick_array($this->postData, ['page', 'list_rows','keywords','type']);
        return FundIndex::FundOptionLog()->freezeOperateReason($data);
    }
    /*获取某条原因记录相关的解冻详情*/
    public function reasonUnfreezeInfo(): array 
    {
        $data = pick_array($this->postData, ['obj_id', 'user_id','app_id','action']);
        return FundIndex::FundOptionLog()->reasonUnfreezeInfo($data);
    }

}